/**
 * Copyright (c) 2013-Now http://jeesite.com All rights reserved.
 */
package com.jeesite.modules.zx.examination.room.entity;

import org.hibernate.validator.constraints.Length;
import java.util.Date;
import com.jeesite.common.mybatis.annotation.JoinTable;
import com.jeesite.common.mybatis.annotation.JoinTable.Type;
import com.fasterxml.jackson.annotation.JsonFormat;

import com.jeesite.common.entity.DataEntity;
import com.jeesite.common.mybatis.annotation.Column;
import com.jeesite.common.mybatis.annotation.Table;
import com.jeesite.common.mybatis.mapper.query.QueryType;

/**
 * 考试考场Entity
 * @author zpp
 * @version 2020-03-22
 */
@Table(name="t_examination_room", alias="a", columns={
		@Column(name="id", attrName="id", label="id", isPK=true),
		@Column(name="exam_id", attrName="examId", label="考试标识"),
		@Column(name="room_name", attrName="roomName", label="考场名称", queryType=QueryType.LIKE),
		@Column(name="room_address", attrName="roomAddress", label="考场地址"),
		@Column(name="actual_address", attrName="actualAddress", label="考场地址"),
	}, orderBy="a.id DESC"
)
public class TexaminationRoom extends DataEntity<TexaminationRoom> {
	
	private static final long serialVersionUID = 1L;
	private String examId;		// 考试标识
	private String examName;
	private String roomName,actualAddress,roomAddress;		// 考场名称
	
	public String getActualAddress() {
		return actualAddress;
	}

	public void setActualAddress(String actualAddress) {
		this.actualAddress = actualAddress;
	}

	public String getRoomAddress() {
		return roomAddress;
	}

	public void setRoomAddress(String roomAddress) {
		this.roomAddress = roomAddress;
	}

	public String getExamName() {
		return examName;
	}

	public void setExamName(String examName) {
		this.examName = examName;
	}

	public TexaminationRoom() {
		this(null);
	}

	public TexaminationRoom(String id){
		super(id);
	}
	
	@Length(min=0, max=50, message="考试标识长度不能超过 50 个字符")
	public String getExamId() {
		return examId;
	}

	public void setExamId(String examId) {
		this.examId = examId;
	}
	
	@Length(min=0, max=50, message="考场名称长度不能超过 50 个字符")
	public String getRoomName() {
		return roomName;
	}

	public void setRoomName(String roomName) {
		this.roomName = roomName;
	}
}